package com.ostrich.cloud.ostrichUserWeb.app.ApiImp;

import com.ostrich.cloud.common.result.Result;
import com.ostrich.cloud.ostrichGoodsSercice.model.param.CreateGrounpByParam;
import com.ostrich.cloud.ostrichGoodsService.client.GrounpClient;
import com.ostrich.cloud.ostrichUserWeb.client.GrounpGoodsClient;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class GrounpGoodsApiImp implements GrounpGoodsClient {

    @Resource
    private GrounpClient grounpClient;

    @Override
    public Result createGrounpBy(CreateGrounpByParam param) {

        Result grounpBy = grounpClient.createGrounpBy(param);

        return grounpBy;
    }

    @Override
    public Result getGrounpBy(Integer groundGoodsId) {
        Result grounpBy = grounpClient.getGrounpBy(groundGoodsId);
        return grounpBy;
    }

    @Override
    public Result getGrounp(Integer current, Integer size) {
        Result grounp = grounpClient.getGrounp(current, size);

        return grounp;
    }
}
